package com.relife.core.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 定时任务配置
 * 
 * @author WU
 * @date 2017-04-18 15:02:13
 */
@Entity
@Table(name = "sys_cron")
public class CronEntity extends BaseEntity {

	private static final long serialVersionUID = -5318940442174965862L;
	/** 类名 **/
	private String serviceName;
	/** cron表达式 **/
	private String cron;
	/** 方法名 **/
	private String methodName;
	/** 任务名称 **/
	private String name;
	/** 状态 **/
	private Integer state;

	@Column(name = "SERVICE_NAME")
	public String getServiceName() {
		return serviceName;
	}

	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}

	/** cron表达式 **/
	@Column(name = "CRON")
	public String getCron() {
		return cron;
	}

	/** cron表达式 **/
	public void setCron(String cron) {
		this.cron = cron;
	}

	/** 方法名 **/
	@Column(name = "METHOD_NAME")
	public String getMethodName() {
		return methodName;
	}

	/** 方法名 **/
	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	/** 任务名称 **/
	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	/** 任务名称 **/
	public void setName(String name) {
		this.name = name;
	}

	/** 状态 **/
	@Column(name = "STATE")
	public Integer getState() {
		return state;
	}

	/** 状态 **/
	public void setState(Integer state) {
		this.state = state;
	}

}
